package com.cy.mall.dao.mapper.customer;

import com.cy.mall.model.domain.customer.CustomerIdCardAuthRecord;
import com.cy.mall.model.dto.fujue.req.AdmittanceAndGetCreditsParamDTO;
import com.cy.mall.model.dto.fujue.req.AuthDataDTO;
import com.cy.mall.model.vo.customer.CustomerIdCardInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

/**
 * @Description 客户身份证认证状态 CustomerIdCardAuthRecordMapper
 * @Author tanyilin
 * @Date 2019/6/17 15:23
 */
@Mapper
public interface CustomerIdCardAuthRecordMapper extends BaseMapper<CustomerIdCardAuthRecord> {

    /**
     * 查询客户已上传并ocr识别出来的身份证信息
     * @param customerId
     * @return com.cy.mall.model.vo.customer.CustomerIdCardInfoVO
     */
    CustomerIdCardInfoVO selectCustomerIdCardInfo(@Param("customerId") Long customerId);

    /**
     * 查询客户实名认证参数
     * @param customerId
     * @return com.cy.mall.model.dto.fujue.req.AuthDataDTO
     */
    AuthDataDTO selectCustomerAuthData(@Param("customerId") Long customerId);

    /**
     * 查询客户获取准入额度参数
     * @param customerId
     * @return com.cy.mall.model.dto.fujue.req.AdmittanceAndGetCreditsParamDTO
     */
    AdmittanceAndGetCreditsParamDTO selectAdmittanceAndGetCreditsParamDTO(@Param("customerId") Long customerId);
}
